package top.psjj.mall.model.dto;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
public class UpdateProductReq {
    @NotNull(message = "商品id不能为空")
    private Integer id;
    private String name;
    private Integer categoryId;
    @Min(value = 1,message = "价格不能低于1分")
    private Integer price;
    @Max(value = 1000,message = "库存不能大于1000")
    private Integer stock;
    private String detail;
    private String image;
}
